import request from '@/utils/request'

// 查询用车申请报表列表
export function listReportforms(query) {
  return request({
    url: '/bpmforns/reportforms/list',
    method: 'get',
    params: query
  })
}

// 查询用车申请报表详细
export function getReportforms(id) {
  return request({
    url: '/bpmforns/reportforms/' + id,
    method: 'get'
  })
}

// 新增用车申请报表
export function addReportforms(data) {
  return request({
    url: '/bpmforns/reportforms',
    method: 'post',
    data: data
  })
}

// 修改用车申请报表
export function updateReportforms(data) {
  return request({
    url: '/bpmforns/reportforms',
    method: 'put',
    data: data
  })
}

// 删除用车申请报表
export function delReportforms(id) {
  return request({
    url: '/bpmforns/reportforms/' + id,
    method: 'delete'
  })
}

// 更新里程
export function upMileage(data) {
  return request({
    url: '/bpmforns/reportforms/upMileage',
    method: 'post',
    data: data
  })
}